package cn.ydt.ydt.pojo.shopping.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class CreateVegetableOrderDTO implements Serializable {
    /**
     * 配送地址
     */
    @ApiModelProperty(value = "配送地址",required = true,dataType = "String",example = "14栋3011")
    @NotNull(message = "配送地址不能为空")
    private String address;

    /**
     *订单对应购物车id集合
     */
    @ApiModelProperty(value = "购物车id集合",required = true,dataType = "List" ,example = "[1,2,3]")
    @NotNull(message = "购物车id不能为空")
    private List<Long> carts = new ArrayList<>();
}
